package com.zwj.service.impl;

import com.zwj.dao.ByDevUser.ByDevUserMapper;
import com.zwj.pojo.DevUser;
import com.zwj.service.ByDevUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ByDevUserServiceimpl implements ByDevUserService {
    @Autowired
    private ByDevUserMapper devUserMapper;
    @Override
    public DevUser logo(String devCode, String devPassword) {
        DevUser logo = devUserMapper.logo(devCode,devPassword);
        if (null!=logo){
            if (!logo.getDevPassword().equals(devPassword)){
                logo=null;
            }
        }
        return logo;
    }
}
